<?php 
	$akses = $_POST['username'];
	$basepath = 'http://localhost/petro/';
	$redirect = $basepath.$akses.'/';

	header('Location:'.$redirect);
?>